package marmalius.player;

import marmalius.client;

public abstract class Storage {
	protected Item[] items;
	protected client client;
	
	protected int maxItem;
	
	public void setItem(Item item, int index) {
		if (index < 0 || index >= maxItem)
			return ;
		items[index] = item;
	}
	
	public Item getItem(int index) {
		if (index < 0 || index >= maxItem)
			return null;
		return items[index];
	}
}
